﻿@model IEnumerable<VOD.Models.Video>
@{
    ViewBag.Title = "Create";
}

<h1>选择要推荐的视频</h1>

<table>
    <tr class="thead">
        <th width="200">名称</th>
        <th width="60">分类</th>
        <th width="140">添加时间</th>
        <th width="140">更新时间</th>
        <th width="120"></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VideoCategory.CategoryName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AddDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdateDate)
        </td>
        <td>
            @Html.ActionLink("上传推荐大图", "UploadBigImg", new { id=item.VideoID })
        </td>
    </tr>
}
</table>